<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8" />
    <meta name="renderer" content="webkit" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <title>50bus-剧本</title>
    <meta name="keywords" content="50bus" />
    <meta name="copyright" content="50bus.cn" />
    <!-- <meta http-equiv="mobile-agent" content="http://www.50bus.cn/" />
    <link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" /> -->
    <link rel="icon" href="/resources/img/favicon.ico" type="image/x-icon" />
    
    <link rel="stylesheet" type="text/css" href="/resources/css/base.css" media="all" />
     <link rel="stylesheet" type="text/css" href="/resources/css/page.css" media="all" />
    <link rel="stylesheet" type="text/css" href="/resources/css/globe.css" media="all" />
    <link rel="stylesheet" type="text/css" href="/resources/css/module-script.css" media="all" />
    <script type="text/javascript" src="/resources/js/jquery-1.9.1.min.js"></script>
</head>

<body>
    <div class="header_wrap">
        <div class="header clearfix">
            <div class="fm980 fl clearfix">
                <a href="/index.html" class="logo fl"></a>
                <ul class="nav_box fl">
                   <li><a href="/creative_list.html">形象创意</a></li>
                    <li><a href="/script_list.html" class="cur">剧本创作</a></li>
                    <li><a href="/render_index.html">动画渲染</a></li>
                    <li><a href="/creative_helper.html">创意助手</a></li>
                </ul>
                <div class="about_box fr">
                    <a href="/about.html">关于我们</a>
           			<#if uid??&&uid!="">
	                    <a href="/user/user_work.html">个人空间</a>
	                    <a href="/logout.html">退出</a>
                    <#else>
	                    <a href="/register.html">注册</a>
	                    <a href="/login.html">登录</a>
                    </#if>
                </div>
            </div>
        </div>

    </div>

    <div class="body_wrap">
        <div class="box_2">
            <div class="fm980">
                <div class="box_hd"><a href="javascript:void(0);">剧本征集</a> &gt; ${scriptModel.script_title}/${scriptModel.collect_type}</div>
                <div class="box_bd script_detail_box clearfix">
                    <!-- 左侧剧本详情 -->
                    <div class="script_detail_left fl">
                        <!--<b class="script_no_b script_no_b1"></b>-->
                        <#if uid??&&uid=scriptOwnModel.uid&&scriptModel.end_time?datetime("yyyy-MM-dd")gt(.now)>
                            <a class="btn_oper_purple mt10 fr" href="/script_attribute_editor.html?sid=${scriptModel.sid}&&own_sid=${scriptOwnModel.own_sid}">编辑</a>
                        <#else>
                            <a style="display:none;" class="btn_oper_purple mt10 fr" href="javascript:;">编辑</a>
                        </#if>
                        <p class="script_title">${scriptOwnModel.script_title_own}</p>
                        <div class="user_name clearfix">
                        	<#if user.header_img?? && user.header_img != ''>
                        		<img class="r10 fl" style="width:20px;height:20px;" src="${user.header_img}" />
                        	<#else>
                        		<img class="r10 fl" style="width:20px;height:20px;" src="/resources/img/user_def_70.png" />
                        	</#if>
                            <span class="fz14 ml5 fl">${user.comp}</span>
                            <span class="fz14 ml15 fl">投稿时间：${scriptOwnModel.create_time?datetime("yyyy-MM-dd HH:mm:ss")?date}</span>
                        </div>
                        <div class="script_desc">
                            <p>故事概要： </p>
                            <p class="w_d_t">${scriptOwnModel.essential}</p>
                        </div>
                        <#if uid?? && (uid != '') && (scriptModel.end_time?datetime("yyyy-MM-dd") lt .now)>
	                        <div class="script_down">
	                            附件下载：<a href="${scriptOwnModel.script_source_file}" target="_blank" class="icon_doc">点击下载</a>
	                        </div>
                        </#if>
                        <div class="txt_center fav_heart_box ">
                        	<#if !isliked?? || (isliked lte 0) || (scriptModel.vote_end_time?? && scriptModel.vote_end_time?datetime("yyyy-MM-dd") lt .now)>
                            	<a href="javascript:;" class="fav_heart_80"></a><br>
                            <#else>
                            	<a href="javascript:;" class="fav_heart_80"></a><br>
                            </#if>
                            <span class="like_box_14 like_num" nums="${scriptOwnModel.addlike}">
	                            <span class="num">${scriptOwnModel.addlike}</span>
	                            <b class="fav_heart"></b>
                            </span>
                        </div>
                    </div>                    
                    
                    <!-- 右侧剧本相关 -->
                    <div class="script_related_right fr">
                        <div class="script_intro_item clearfix">
                            <div class="script_cover fl"><a href="/script_collect_detail.html?sid=${scriptModel.sid}"><#if scriptModel.s_cover??&&scriptModel.s_cover!=""><img style="width:96px;height:140px;" src=${scriptModel.s_cover} /><#else><img  src="/resources/img/script_def_90x134.png"></#if></a></div>
                            <div class="script_intro_info">
                                <p class="t purple_txt"><a href="/script_collect_detail.html?sid=${scriptModel.sid}">${scriptModel.script_title}/${scriptModel.collect_type}</a></p>
                                <p><label>发起方：</label><br>${collect_comp}</p>
                                <p><label>剧情摘要：</label><br><#if scriptModel.script_demand?length gt 20>${scriptModel.script_demand?substring(0,20)}....<#else>${scriptModel.script_demand}</#if></p>
                            </div>
                        </div>
                        <div class="copyright_desc" style="display:none">
                            <span class="fz18">版权说明:</span>
                            <p>${scriptModel.copyright}</p>
                        </div>
                        <div class="script_intro_link">
                            <p class="fz18"><a href="/comp_attribute_list.html?attribute_uid=${scriptOwnModel.uid}">${user.comp}全部投稿</a><span class="purple_txt">（${scriptOwn_count}）</span></p>
                            <ul>
                             <#assign index=0>
                              <#list scriptOwnList as scriptOwn>  
                               <#assign index=index+1>
                                <#if index <=5>
                                <li>
                                    <a href="/script_contribute_list.html?own_sid=${scriptOwn.own_sid}&sid=${scriptOwn.sid}&attribute_uid=${scriptOwn.uid}">${scriptOwn.script_title_own}</a>
                                    <p class="clearfix">
                                        <span class="like_box_14 fr liked_box_14">${scriptOwn.addlike}<b class="fav_heart"></b></span>
                                        <span class="fl">${scriptOwn.create_time?datetime("yyyy-MM-dd HH:mm:ss")?date}</span>
                                    </p>
                                </li>
                                </#if>
                              </#list> 
                            </ul>
                        </div>
                    </div>

                </div>
            </div>

        </div>

    </div>

    <div class="footer">
        <div class="fm980 clearfix">
            <div class="foot_link foot_link1 fl">
                <a href="/creative_list.html">形象创意</a>
                <a href="/script_list.html">剧本创作</a>
                <a href="/render_index.html">动画渲染</a>
                <a href="/creative_helper.html" >创意助手</a>
            </div>
            <div class="foot_link foot_link2 fl">
                <a href="http://zjusp.zju.edu.cn/">浙大科技园</a>
                <a href="http://www.zju.edu.cn/">浙江大学</a>
                <a href="/about.html" >关于我们</a>
            </div>
            <div class="copy_box fr">
                <img class="mb5" src="/resources/img/foot_text.png" />
                <p>&copy; 2013-2016 All right reserved</p>
                <p><a href="">服务条款</a><a href="">隐私条款</a><a href="">法律条款</a></p>
                <p style="display:none;"><a href="" class="share_icon share_sina"></a><a href="" class="share_icon share_wx"></a></p>
            </div>
        </div>
    </div>
<script type="text/javascript">
$(function(){
  		var flag=0;
		$(".fav_heart_80").click(function(){
			<#if scriptModel.end_time?datetime("yyyy-MM-dd") lt .now>
			    if(flag==0)
				{
					$.post("script_like.json?own_sid=${scriptOwnModel.own_sid}",function(data){
					if(data.success=="true"){
						var old_nums = parseInt($(".like_num").attr("nums"));
						$(".num").html((old_nums+1));
  						$(".fav_heart_box").addClass("faved_heart_box");
  						
					}else{
						alert(data.msg);
					}
					flag=1;
				  })
				}
			<#else>
				alert("还没到投票时间~");
			</#if>
		});
	});
</script>
<script type="text/javascript" src="/resources/js/page-index.js"></script>
<script type="text/javascript">
	<#if uid??&&uid!="">
    	$.post("/common/getUserName.json",{"uid":${uid}},function(data){
    		if(data.name){
    			$('a[href="/user/user_work.html"]').html(data.name+"个人空间");
    		}
    	});
	 </#if>
</script>
</body>
</html>